<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>修改联系人</title>
</head>
<body>
  	<h2 align="center">修改联系人</h2>
    <form action="${pageContext.request.contextPath }/servlet/EditContactServlet" method="post" >
    <input type="hidden" name="contactid" value="${c.contactid }"/>
    <table align="center" >
    	<tr>
    		<td>姓名：</td>
    		<td><input type="text" name="contactname" value="${c.contactname }"/></td>
    	</tr>
    	
    	<tr>
    		<td>电话：</td>
    		<td><input type="text" name="phone" value="${c.phone }"/></td>
    	</tr>
    	
    	<tr>
    		<td>电子邮件：</td>
    		<td><input type="text" name="email" value="${c.email }"/></td>
    	</tr>
    	
    	<tr>
    		<td>QQ:</td>
    		<td><input type="text" name="qq" value="${c.qq }"/></td>
    	</tr>
    	
    	<tr>
    		<td>所在分组：</td>
    		<td>
    			<select name="groupid">
    				<c:forEach var="cnt" items="${list }">
    					<option value="${cnt.groupid }" ${cnt.groupid==rg?"selected='selected'":'' }>${cnt.groupname }</option>
    				</c:forEach>
    			</select>
    		</td>
    	</tr>
    	
    	<tr>
    		<td>
    			<input type="reset" name="reset" value="重置"/>
    		</td>
    		<td>
    			<input type="submit" name="submit" value="修改"/>
    		</td>
    	</tr>
    </table>
    </form>
  </body>
</html>